﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZJF.Anonymous._01_自定义泛型委托;

namespace ZJF.Anonymous
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Test3();
            Console.Read();
        }

        //public static int AddCalc(int a, int b) {
        //    return a + b;
        //}

        //public static void Test1()
        //{
        //    Add addDelegate = delegate(int x, int y) { return x + y; };
        //    Console.WriteLine( addDelegate(1,2) );
        //}

        //public static void Test2() {

        //    Add addDelegate = (a, b) => { return a + b; }; 
        //    Console.WriteLine(addDelegate(1,2));
        //}

        public static void Test3() {
            MyGenericDelegate.Test2();
        }
    }

    //public delegate int Add(int x, int y);

}
